package main

import (
	"ZeroToAll-Go/crawler/engine"
	"ZeroToAll-Go/crawler/scheduler"
	"ZeroToAll-Go/crawler/selfServer/parser"
)

func main() {
	concurrentEngine := engine.ConcurrentEngine{
		//Scheduler: &scheduler.QueuedScheduler{},
		Scheduler: &scheduler.SimpleScheduler{},
		WorkCount: 3,
	}
	concurrentEngine.Run(engine.Request{
		Url:        "http://localhost:8080/mock/www.zhenai.com/zhenghun",
		ParserFunc: parser.ParseCityList,
	})
}
